package info;

import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;

public class Score implements game.Constants{
	public final int x = 20;
	public final int y = MAIN_HEIGHT - 50;
	public static int highest = 0;
	private int currentScore;
	
	public Score() {	currentScore = 0;	}
	public Score(int s) {	currentScore = s;	} //might be useful in the future;
	
	public int getCurrentScore()	{	return currentScore;	}
	
	public void IncScore(int s)	 {	currentScore += s;	}
	
	public int update() 
	{
		if (Score.highest < currentScore)	Score.highest = currentScore;
		return Score.highest;
	}
	
	public void paintCurrentScore (Graphics g)
	{
		String string = "Current Score : " + currentScore;
	    Font gameFont = new Font("Helvetica", Font.BOLD, 18);
	    g.setColor(Color.CYAN);
	    g.setFont(gameFont);
	    g.drawString(string, 25, MAIN_HEIGHT - 60);
	}
}
